Optimal. Leaf size=39 \[ \frac {x^{-p (1+q)} \left (a x^n+b x^p\right )^{1+q}}{a (n-p) (1+q)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.040, Rules used = {2039}
\begin {gather*} \frac {x^{-p (q+1)} \left (a x^n+b x^p\right )^{q+1}}{a (q+1) (n-p)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2039
Rubi steps
\begin {align*} \int x^{-1+n-p (1+q)} \left (a x^n+b x^p\right )^q \, dx &=\frac {x^{-p (1+q)} \left (a x^n+b x^p\right )^{1+q}}{a (n-p) (1+q)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 40, normalized size = 1.03 \begin {gather*} -\frac {x^{-p (1+q)} \left (a x^n+b x^p\right )^{1+q}}{a (-n+p) (1+q)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.19, size = 0, normalized size = 0.00 \[\int x^{-1+n -p \left (q +1\right )} \left (a \,x^{n}+b \,x^{p}\right )^{q}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.38, size = 76, normalized size = 1.95 \begin {gather*} \frac {{\left (a x x^{-p q + n - p - 1} x^{n} + b x x^{-p q + n - p - 1} x^{p}\right )} {\left (a x^{n} + b x^{p}\right )}^{q}}{{\left (a n - a p + {\left (a n - a p\right )} q\right )} x^{n}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int x^{n-p\,\left (q+1\right )-1}\,{\left (a\,x^n+b\,x^p\right )}^q \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________